-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') page=GetVarInt(mg.request_info.query_string,'page',0,100000) or 0 edcb.htmlEscape=15 r=edcb.GetReserveData(GetVarInt(mg.request_info.query_string,'id') or 0) ct={title='予約情報'} if r then recording=edcb.GetRecFilePath(r.reserveID) ct.js=(recording and '
\n'or '') ct.progres=r ct.macro=true epgInfo, audio=ConvertEpgInfoText2(r.onid, r.tsid, r.sid, r.eid) ct.main='
\n' ..'
\n' ..'
\n' ..(#epgInfo>0 and epgInfo or '
\n

#### '..ConvertTitle(r.title) ..''..FormatTimeAndDuration(r.startTime, r.durationSecond)..'\n' ..''..r.stationName..'\n

\n
\n
') ..'
\n' ..'\n' ..'
\n' ..'
\n
プリセット
\n' ..'
\n' ..'\n' ..'\n' ..'\n' ..RecSettingTemplate(rs)..'
\n' ..'
\n' ..(recording and '
\n
\n' ..player('\n', audio) ..'
\n
\n' or '') ..'
\n' ..'
\n' ..'
\n' ..'
\n' ..'\n' ..'
\n' ..'
\n' ..'
\n' ..'
\n
\n' if #epgInfo>0 or recording then ct.tab=(#epgInfo>0 and '番組詳細\n' or '') ..((#epgInfo>0 or recording) and '録画設定\n' or '') ..(recording and '再生\n' or '') end end ct=template(ct) mg.write(ct:Pop(Response(200,'text/html','utf-8',ct.len)..(ct.gzip and 'Content-Encoding: gzip\r\n' or '')..'\r\n'))